<form action="/admin/ko_smo" method="post" enctype="multipart/form-data" id="kosmo-form">
<? foreach($txt as $k=>$v): ?>
<label>
	<?= file2class($k, true) ?>:<br />
	<textarea name="kosmo[<?= $k ?>]"><?= htmlentities($v, ENT_QUOTES, "utf-8") ?></textarea>
</label>
<? endforeach; ?>
<input type="submit" value="Sačuvaj" />
</form>
<? if(isset($saved)): ?>
	<br clear="all" />
	<div class="message <?= $saved ? "ok" : "error" ?>"><?= $saved ? "Sačuvano." : "Čuvanje neuspelo!" ?></div>
<? endif; ?>

<script type="text/javascript">
setTimeout(function(){
	$(".message").fadeOut();
}, 2500);
</script>